package com.portal.web;

import com.portal.pojo.City;
import com.portal.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CityController {
    @Autowired
    private CityService cityService;
    @RequestMapping("/find")
    public City selectCity(int id){
        return cityService.selectCity(id);
    }
    @RequestMapping("/update")
    public Long updateCity(City city){
        return cityService.updateCity(city);
    }
}
